﻿using QLTour.Dal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLTour.Biz
{
    public class ThamQuanBiz
    {
        private ThamQuanDal dal = new ThamQuanDal();

        public int Id { get; set; }
        public string MaTour { get; set; }
        public int MaDiaDiem { get; set; }
        public int ThuTu { get; set; }

        public bool Insert()
        {
            return dal.Insert(this);
        }

        public static int XoaHetDiaDiem(TourBiz tour)
        {
            ThamQuanDal dal = new ThamQuanDal();
            return dal.XoaHetDiaDiem(tour);
        }
    }
}
